import { api } from '../boot/axios';

function url(s: string) {
  return ['/api/eformschemas', s.replace('/', ''), ''].join('/');
}

export function getEformSchemas() {
    return api({
      url: '/api/eformschemas/',
      method: 'get',
    });
  }

  export function getEformSchema(id:number) {
    return api({
      url: url(`${id}`),
      method: 'get',
    });
  }